package com.example.springmvcdemo2;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "sayHi", method = RequestMethod.GET)
public class HelloController {
    @RequestMapping("hi")
    public String hi() {
        return "你好，Spring MVC";
    }
}
